package com.demo.fulllink.common.utils;

import com.demo.fulllink.common.constant.CommonConstant;

import java.io.Serializable;

public class CommonUtils {
    
    public static String getProductStockKey(Serializable productId) {
        return CommonConstant.PRODUCT_STOCK_PREFIX + productId;
        
    }
    
    public static String getOrderIdempotentKey(Serializable productId) {
        return CommonConstant.ORDER_IDEMPOTENT_PREFIX + productId;
        
    }
}
